<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>六西格玛知识管理</title>
<link href="<?php echo $this->baseUrl ?>/public/style/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/form-check.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/daterangepicker.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/thickbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/thickbox-compressed.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jQuery.FormValidator.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jQuery.FormValidator.js"></script>
</head>

<body>
<!--头部-->
<?php echo $this->partial('common/header.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>

<!--主体-->
<div class="main-box" id="mainBox">
	<div class="third-menu">
		<?php echo $this->partial('common/operation.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl, 'id'=>$_GET['product_id'])) ?>
		<div class="menu-title"><span class="icon"></span>项目文件</div>
	</div>
	<div class="separate-line"></div>
  
	<div class="main-form">
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo $this->baseUrl ?>/product/file">
		<input type="hidden" name="product_id" value="<?php echo $_GET['product_id']; ?>" />
		<p><label for="title">教学产品名称：</label><input name="title" disabled="disabled" class="input-text" value="<?php echo $this->product[0]['name']; ?>" /></p>
		<?php foreach ($this->productfiles as $key => $val): ?>
        <p>
        <label for="title">现有附件：</label>
        <a href="<?php echo $this->baseUrl; ?>/<?php echo $val['path']; ?>" target="_blank"><?php echo $val['file_name']; ?></a> <a href="<?php echo $this->baseUrl; ?>/product/filedel?file_id=<?php echo $val['file_id']; ?>&product_id=<?php echo $this->product[0]['product_id'];?>">删除</a>
        </p>
        <?php endforeach; ?>
        <p>
            <label>教学产品附件：</label>
            <input type="text" name="file_name[]" class="input-text" />
            <input type="file" name="file_upload" id="file_upload" class="file_upload" />
		</p>
		<p><label>&nbsp;</label><input type="submit" class="button" value="提 交" style="margin-left:0" /></p>
	</form>
	</div>
</div>
<script>
$(document).ready(function(){
	$("#file_upload").change(function(){
		var file_name = $(this).val();
		var pos = file_name.indexOf(".");
		var f = file_name.substr(0,pos);
		$(this).prev().val(f);
	});
});
</script>










<!--底部-->
<?php echo $this->partial('common/footer.html') ?>
</body>
</html>